package com.example.curator;

import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.retry.ExponentialBackoffRetry;

public class ConnectionTest {
    
	public static void main(String[] args) throws Exception{		
		CuratorFramework curatorFramework = CuratorFrameworkFactory.newClient("127.0.0.1:2181",  new ExponentialBackoffRetry(1000,3));
		curatorFramework.start();
		curatorFramework.create().forPath("/test");
	}
}